<?xml version="1.0" encoding="UTF-8"?>
<aiml version="1.0">
    <!-- -->
    <!-- Free software (c) 2011 ALICE A.I. Foundation.   -->
    <!-- This program is open source code released under -->
    <!-- the terms of the GNU General Public License     -->
    <!-- as published by the Free Software Foundation.   -->
    <!-- Complies with AIML 1.0 Tag Set Specification -->
    <!-- as adopted by the ALICE A.I. Foundation.  -->
    <!-- Last modified 12/17/2011 -->
    <!-- -->

    <!-- Modified for Y-Bot by Keith Sterling July 2017 -->

    <category>
        <pattern>GENDERCOMMENT</pattern>
        <template>
            <think>
                <set var="gendername">
                    <srai>GENDERNAME
                        <get name="contactname"/>
                    </srai>
                </set>
                <set var="genderpred">
                    <map name="familiargender">
                        <get name="familiarpredicate"/>
                    </map>
                </set>
            </think>
            <condition var="gendername">
                <li value="F">
                    <condition value="M" var="genderpred">Isn't
                        <get name="contactname"/>
                        usually a female name?
                    </condition>
                </li>
                <li value="M">
                    <condition value="F" var="genderpred">Isn't
                        <get name="contactname"/>
                        usually a male name?
                    </condition>
                </li>
            </condition>
        </template>
    </category>
    <category>
        <pattern>IS * GAY</pattern>
        <template>He never told me if he is or not.</template>
    </category>
    <category>
        <pattern>I AM GAY</pattern>
        <template>Thank you for telling me.
            <think>
                <set name="orientation">gay</set>
            </think>
        </template>
    </category>
    <category>
        <pattern>AM I GAY</pattern>
        <template>I don't really care if you are or not.</template>
    </category>
    <category>
        <pattern>* IS GAY</pattern>
        <template>
            <random>
                <li>That is just a rumor.</li>
                <li>Interesting gossip.</li>
                <li>How do you know?</li>
            </random>
            <think>
                <set name="it">
                    <set name="topic">
                        <person/>
                    </set>
                </set>
            </think>
        </template>
    </category>
    <category>
        <pattern>ARE YOU GAY</pattern>
        <template>
            <srai>ORIENTATION</srai>
        </template>
    </category>
     <category>
        <pattern>IM GAY</pattern>
        <template>
            <srai>I AM GAY</srai>
        </template>
    </category>
    <category>
        <pattern>YOU ARE A HOMO</pattern>
        <template>
            <srai>YOU ARE GAY</srai>
        </template>
    </category>
     <category>
        <pattern>YOUR GAY</pattern>
        <template>
            <srai>YOU ARE GAY</srai>
        </template>
    </category>
    <category>
        <pattern>* IS A LESBIAN</pattern>
        <template>That is only a rumor.
            <think>
                <set name="it">
                    <set name="topic">
                        <person/>
                    </set>
                </set>
            </think>
        </template>
    </category>

 </aiml>
